package com.sxmmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxmmall.common.utils.PageUtils;
import com.sxmmall.product.entity.ProductAttrValueEntity;

import java.util.List;
import java.util.Map;

/**
 * spu
 *
 * @author sxm
 * @email 1125400943@qq.com
 * @date 2021-07-06 21:31:03
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveProductAttrValueEntity(List<ProductAttrValueEntity> productAttrValueEntityList);

    List<ProductAttrValueEntity> baseAttrListForSpu(Long spuId);

    /*
     * @Author sxm
     * @Description 修改spu 对应的基本参数
     * @Date 13:30 2021/9/24
     * @Param [spuId]
     * @return [java.lang.Long]
     **/
    void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> values);
}

